package vuelos;

public class ClientScreenTraer implements Runnable {
	
	private ClientScreen Window;	
	
	public ClientScreenTraer(ClientScreen CS){
	   super();
	   Window = CS;
	}	
	
	public void run() {
	   int posY = Window.getY();
	   int posX = Window.getX();
	   while (posX < 20) {
		 try {  
		   Thread.sleep(0);
		 }
		 catch (Exception ex) {
			System.out.println(ex.getMessage()); 
		 } 
		 posX = posX + 14;
		 Window.setLocation(posX, posY);
		 Window.repaint();
	   }
	}

}
